package com.fuhao.api.service;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.fuhao.api.entity.PaymentInfo;
import com.fuhao.base.ResponseBase;

@RequestMapping("/pay")
public interface PayService {

	/**
	 * 生成支付token
	 * @return
	 */
	@RequestMapping("/createToken")
	public ResponseBase createToken(@RequestBody PaymentInfo paymentInfo);
	
	/**
	 * 根据支付token查找支付信息
	 * @return
	 */
	@RequestMapping("/findPayToken")
	public ResponseBase findPayToken (@RequestParam("payToken") String payToken);
	
	
	
}
